package com.ourteam.workspace.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2018-11-30 16:50:00
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class WorkspaceConfigPropertyBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.workspace.dao.WorkspaceConfigProperty workspaceConfigProperty;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(workspaceConfigProperty);
	}
	
	static{
				
																
		mappedDaoFields.put("configProperty",com.ourteam.workspace.dao.IWorkspaceConfigPropertyDAO.ConfigProperty);
		
																										
				
																
				
																				
		mappedDaoFields.put("configValue",com.ourteam.workspace.dao.IWorkspaceConfigPropertyDAO.ConfigValue);
		
																						
				
																
				
																								
		mappedDaoFields.put("description",com.ourteam.workspace.dao.IWorkspaceConfigPropertyDAO.Description);
		
																		
				
																
				
												
		mappedDaoFields.put("id",com.ourteam.workspace.dao.IWorkspaceConfigPropertyDAO.Id);
		
																														
				
																
				
																												
		mappedDaoFields.put("status",com.ourteam.workspace.dao.IWorkspaceConfigPropertyDAO.Status);
		
														
				
																
				
																																
		mappedDaoFields.put("workspaceConfigId",com.ourteam.workspace.dao.IWorkspaceConfigPropertyDAO.WorkspaceConfigId);
		
										
				
																
				
																																		
				
										
		mappedDaoFields.put("workspaceConfigItem",com.ourteam.workspace.dao.IWorkspaceConfigPropertyDAO.WorkspaceConfigItem);
								
				
																																				
		mappedDaoFields.put("workspaceId",com.ourteam.workspace.dao.IWorkspaceConfigPropertyDAO.WorkspaceId);
		
						
				
																
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public WorkspaceConfigPropertyBean() {
		super();
	    		
		this.workspaceConfigProperty = new com.ourteam.workspace.dao.WorkspaceConfigProperty();
                
	}
	
		
	public WorkspaceConfigPropertyBean(com.ourteam.workspace.dao.WorkspaceConfigProperty workspaceConfigProperty) {
		super();
	
		this.workspaceConfigProperty = workspaceConfigProperty;
		
	}
		
		
		
    	
	public com.ourteam.workspace.dao.WorkspaceConfigProperty convertToWorkspaceConfigProperty(){
		return this.workspaceConfigProperty;
	}
	
	public com.ourteam.workspace.dao.WorkspaceConfigProperty convertTo(){
		return this.workspaceConfigProperty;
	}
	
			
		
					
			
		
	/**
	 * Get configProperty
	 * 
	 * @return String
	 */
	public String getConfigProperty(){
		return (String) this.workspaceConfigProperty.getConfigProperty();
	}
	
	/**
	 * Set configProperty
	 * 
	 * @parameter String
	 */
	public void setConfigProperty(String configProperty){
		
		this.workspaceConfigProperty.setConfigProperty(configProperty);
	}
		
													
			
									
		
		
							
			
		
	/**
	 * Get configValue
	 * 
	 * @return String
	 */
	public String getConfigValue(){
		return (String) this.workspaceConfigProperty.getConfigValue();
	}
	
	/**
	 * Set configValue
	 * 
	 * @parameter String
	 */
	public void setConfigValue(String configValue){
		
		this.workspaceConfigProperty.setConfigValue(configValue);
	}
		
											
			
									
		
		
									
			
		
	/**
	 * Get description
	 * 
	 * @return String
	 */
	public String getDescription(){
		return (String) this.workspaceConfigProperty.getDescription();
	}
	
	/**
	 * Set description
	 * 
	 * @parameter String
	 */
	public void setDescription(String description){
		
		this.workspaceConfigProperty.setDescription(description);
	}
		
									
			
									
		
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.workspaceConfigProperty.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.workspaceConfigProperty.setId(id);
	}
		
															
			
									
		
		
											
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.workspaceConfigProperty.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.workspaceConfigProperty.setStatus(status);
	}
		
							
			
									
		
		
													
			
		
	/**
	 * Get workspaceConfigId
	 * 
	 * @return long
	 */
	public long getWorkspaceConfigId(){
		return (long) this.workspaceConfigProperty.getWorkspaceConfigId();
	}
	
	/**
	 * Set workspaceConfigId
	 * 
	 * @parameter long
	 */
	public void setWorkspaceConfigId(long workspaceConfigId){
		
		this.workspaceConfigProperty.setWorkspaceConfigId(workspaceConfigId);
	}
		
					
			
									
		
		
																
			
					
			
		
	/**
	 * Get workspaceConfigItem
	 * 
	 * @return String
	 */
	public String getWorkspaceConfigItem(){
		
		return (String) this.workspaceConfigProperty.getWorkspaceConfigItem();
			
	}
	
					
		
		
															
			
		
	/**
	 * Get workspaceId
	 * 
	 * @return long
	 */
	public long getWorkspaceId(){
		return (long) this.workspaceConfigProperty.getWorkspaceId();
	}
	
	/**
	 * Set workspaceId
	 * 
	 * @parameter long
	 */
	public void setWorkspaceId(long workspaceId){
		
		this.workspaceConfigProperty.setWorkspaceId(workspaceId);
	}
		
			
			
									
		
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof WorkspaceConfigPropertyBean) == false) {
            return false;
        } // end if

        WorkspaceConfigPropertyBean other = (WorkspaceConfigPropertyBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.workspace.dao.WorkspaceConfigProperty tempWorkspaceConfigProperty = other.convertToWorkspaceConfigProperty();
        
        if(tempWorkspaceConfigProperty == null || this.workspaceConfigProperty == null){
        	isEqual = false;
        }
        else if(tempWorkspaceConfigProperty == this.workspaceConfigProperty || tempWorkspaceConfigProperty.equals(this.workspaceConfigProperty) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static WorkspaceConfigPropertyBean[] toArray(com.ourteam.workspace.dao.WorkspaceConfigProperty[] aWorkspaceConfigPropertys){
		
		return toArray(aWorkspaceConfigPropertys,null);
	}
	
	public static WorkspaceConfigPropertyBean[] toArray(com.ourteam.workspace.dao.WorkspaceConfigProperty[] aWorkspaceConfigPropertys , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aWorkspaceConfigPropertys)){
		 	return new WorkspaceConfigPropertyBean[0];
		 }
		 
		 int length = aWorkspaceConfigPropertys.length;
		 
		 WorkspaceConfigPropertyBean[] beans = new WorkspaceConfigPropertyBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new WorkspaceConfigPropertyBean(aWorkspaceConfigPropertys[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aWorkspaceConfigPropertys[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}